﻿using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using Pay.Data;
using Pay.Service;
using Pay.Service.Cache;

namespace Pay.Distribution {
    public class Global : HttpApplication {
        protected void Application_Start() {
            DbContextInitailizer.Initialize();
            DependencyInjectionConfig.Register();
            AutoMapperConfig.Register();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            AreaRegistration.RegisterAllAreas();
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
        }
    }
}
